package day6;

import day3.F;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileWRiterTest {
    public static void main(String[] args) {
        try {
            //OutputStream out=new FileOutputStream("F:\\java82\\花名册.txt");
            //true表示从尾部追加
            OutputStream out=new FileOutputStream("F:\\java82\\花名册.txt",true);
            out.write('\r');
            out.write('\n');
            out.write(106);
            out.write(97);
            out.write('V');
            out.write(97);
            out.write(67);
            out.write("php好厉害".getBytes());
            byte[] b={65,66,67};
            out.write(b);
            //out.write(10000);
            out.close();//隐患
         } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
